package com.mzj.saas.sdk.pay.vo;

import com.mzj.saas.sdk.pay.config.WXPayConfig;

/**
 * 支付对象参数
 * @author hp
 *
 */
public class WxPay extends WXPayConfig{
	
	
	public WxPay() {}
	
	public WxPay(String appId, String mchId, String outTradeNo,String attac, Integer totalFree,String body,
			 String mchApiKey,String openid, String callbackUrl, String unifiedApi,String spbillCreateIp) {
		this.appId = appId;
		this.mchId = mchId;
		this.outTradeNo = outTradeNo;
		this.attach  = attac;
		this.totalFee = totalFree;
		this.body = body;
		this.mchApiKey = mchApiKey;
		this.openid = openid;
		this.callbackUrl = callbackUrl;
		this.unifiedApi = unifiedApi;
		this.spbillCreateIp = spbillCreateIp;
	}
	
	/**
	 * 应用ID或者分配的appId
	 */
	private String appId;
	
	/**
	 * 商户号
	 */
	private String mchId;

	/**
	 * 商户订单号
	 */
	private String outTradeNo;
	
	/**
	 * 附加数据，在查询API和支付通知中原样返回，可作为自定义参数使用
	 */
	private String attach;
	
	/**
	 * 商品描述
	 * 1.app支付 按照——需传入应用市场上的APP名字-实际商品名称
	 * 比如天天爱消除-游戏充值。
	 */
	private String body;
	
	/**
	 * 订单总金额，单位为分
	 */
	private Integer totalFee;
	
	/**
	 * API密钥
	 */
	private String mchApiKey;
	
	/**
	 * APP支付(无必填)
	 * 小程序/网页授权支付(必填)
	 */
	private String openid;
	
	/**
	 * 回调地址
	 */
	private String callbackUrl;
	
	/**
	 * 请求地址
	 */
	private String unifiedApi;
	
	/**
	 * 终端IP
	 */
	private String spbillCreateIp;
	
	
	@Override
	public String getAppId() {
		return appId;
	}

	@Override
	public String getMchId() {
		return mchId;
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public Integer getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(Integer totalFee) {
		this.totalFee = totalFee;
	}

	public String getMchApiKey() {
		return mchApiKey;
	}

	public void setMchApiKey(String mchApiKey) {
		this.mchApiKey = mchApiKey;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}


	public String getCallbackUrl() {
		return callbackUrl;
	}


	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}


	public String getUnifiedApi() {
		return unifiedApi;
	}


	public void setUnifiedApi(String unifiedApi) {
		this.unifiedApi = unifiedApi;
	}

	public String getSpbillCreateIp() {
		return spbillCreateIp;
	}

	public void setSpbillCreateIp(String spbillCreateIp) {
		this.spbillCreateIp = spbillCreateIp;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
}
